package com.cqupt.mapper;

import com.cqupt.domain.Account;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author: shineZhao
 * @Date: 2020/10/31 2:47
 * @Description:
 */

public interface AccountMapper {

    @Insert("insert into account values(#{id},#{name},#{money})")
    public void save(Account account);

    @Select("select * from account")
    public List<Account> findAll();
}
